package cn.sccl.dirms.topo.snmp.util;

import java.util.HashMap;

/**
 * Created by liuchuan on 8/17/16.
 */
public class IfTypeCollection {

    private static HashMap<String ,String > ifTypeMap = new HashMap<String,String>();
    static{
        ifTypeMap.put("1", "other");
        ifTypeMap.put("2", "regular1822");
        ifTypeMap.put("3", "hdh1822");
        ifTypeMap.put("4", "ddnX25");
        ifTypeMap.put("5", "rfc877x25");
        ifTypeMap.put("6", "ethernetCsmacd");
        ifTypeMap.put("7", "iso88023Csmacd");
        ifTypeMap.put("8", "iso88024TokenBus");
        ifTypeMap.put("9", "iso88025TokenRing");
        ifTypeMap.put("10", "iso88026Man");
        ifTypeMap.put("11", "starLan");
        ifTypeMap.put("12", "proteon10Mbit");
        ifTypeMap.put("13", "proteon80Mbit");
        ifTypeMap.put("14", "hyperchannel");
        ifTypeMap.put("15", "fddi");
        ifTypeMap.put("16", "lapb");
        ifTypeMap.put("17", "sdlc");
        ifTypeMap.put("18", "ds1");
        ifTypeMap.put("19", "e1");
        ifTypeMap.put("20", "basicISDN");
        ifTypeMap.put("21", "primaryISDN");
        ifTypeMap.put("22", "propPointToPointSerial");
        ifTypeMap.put("23", "ppp");
        ifTypeMap.put("24", "softwareLoopback");
        ifTypeMap.put("25", "eon");
        ifTypeMap.put("26", "ethernet3Mbit");
        ifTypeMap.put("27", "nsip");
        ifTypeMap.put("28", "slip");
        ifTypeMap.put("29", "ultra");
        ifTypeMap.put("30", "ds3");
        ifTypeMap.put("31", "sip");
        ifTypeMap.put("32", "frameRelay");
        ifTypeMap.put("33", "rs232");
        ifTypeMap.put("34", "para");
        ifTypeMap.put("35", "arcnet");
        ifTypeMap.put("36", "arcnetPlus");
        ifTypeMap.put("37", "atm");
        ifTypeMap.put("38", "miox25");
        ifTypeMap.put("39", "sonet");
        ifTypeMap.put("40", "x25ple");
        ifTypeMap.put("41", "iso88022llc");
        ifTypeMap.put("42", "localTalk");
        ifTypeMap.put("43", "smdsDxi");
        ifTypeMap.put("44", "frameRelayService");
        ifTypeMap.put("45", "v35");
        ifTypeMap.put("46", "hssi");
        ifTypeMap.put("47", "hippi");
        ifTypeMap.put("48", "modem");
        ifTypeMap.put("49", "aal5");
        ifTypeMap.put("50", "sonetPath");
        ifTypeMap.put("51", "sonetVT");
        ifTypeMap.put("52", "smdsIcip");
        ifTypeMap.put("53", "propVirtual");
        ifTypeMap.put("54", "propMultiplexor");
        ifTypeMap.put("55", "ieee80212");
        ifTypeMap.put("56", "fibreChannel");
        ifTypeMap.put("57", "hippiInterface");
        ifTypeMap.put("58", "frameRelayInterconnect");
        ifTypeMap.put("59", "aflane8023");
        ifTypeMap.put("60", "aflane8025");
        ifTypeMap.put("61", "cctEmul");
        ifTypeMap.put("62", "fastEther");
        ifTypeMap.put("63", "isdn");
        ifTypeMap.put("64", "v11");
        ifTypeMap.put("65", "v36");
        ifTypeMap.put("66", "g703at64k");
        ifTypeMap.put("67", "g703at2mb");
        ifTypeMap.put("68", "qllc");
        ifTypeMap.put("69", "fastEtherFX");
        ifTypeMap.put("70", "channel");
        ifTypeMap.put("71", "ieee80211");
        ifTypeMap.put("72", "ibm370parChan");
        ifTypeMap.put("73", "escon");
        ifTypeMap.put("74", "dlsw");
        ifTypeMap.put("75", "isdns");
        ifTypeMap.put("76", "isdnu");
        ifTypeMap.put("77", "lapd");
        ifTypeMap.put("78", "ipSwitch");
        ifTypeMap.put("79", "rsrb");
        ifTypeMap.put("80", "atmLogical");
        ifTypeMap.put("81", "ds0");
        ifTypeMap.put("82", "ds0Bundle");
        ifTypeMap.put("83", "bsc");
        ifTypeMap.put("84", "async");
        ifTypeMap.put("85", "cnr");
        ifTypeMap.put("86", "iso88025Dtr");
        ifTypeMap.put("87", "eplrs");
        ifTypeMap.put("88", "arap");
        ifTypeMap.put("89", "propCnls");
        ifTypeMap.put("90", "hostPad");
        ifTypeMap.put("91", "termPad");
        ifTypeMap.put("92", "frameRelayMPI");
        ifTypeMap.put("93", "x213");
        ifTypeMap.put("94", "adsl");
        ifTypeMap.put("95", "radsl");
        ifTypeMap.put("96", "sdsl");
        ifTypeMap.put("97", "vdsl");
        ifTypeMap.put("98", "iso88025CRFPInt");
        ifTypeMap.put("99", "myrinet");
        ifTypeMap.put("100", "voiceEM");
        ifTypeMap.put("101", "voiceFXO");
        ifTypeMap.put("102", "voiceFXS");
        ifTypeMap.put("103", "voiceEncap");
        ifTypeMap.put("104", "voiceOverIp");
        ifTypeMap.put("105", "atmDxi");
        ifTypeMap.put("106", "atmFuni");
        ifTypeMap.put("107", "atmIma");
        ifTypeMap.put("108", "pppMultilinkBundle");
        ifTypeMap.put("109", "ipOverCdlc");
        ifTypeMap.put("110", "ipOverClaw");
        ifTypeMap.put("111", "stackToStack");
        ifTypeMap.put("112", "virtualIpAddress");
        ifTypeMap.put("113", "mpc");
        ifTypeMap.put("114", "ipOverAtm");
        ifTypeMap.put("115", "iso88025Fiber");
        ifTypeMap.put("116", "tdlc");
        ifTypeMap.put("117", "gigabitEthernet");
        ifTypeMap.put("118", "hdlc");
        ifTypeMap.put("119", "lapf");
        ifTypeMap.put("120", "v37");
        ifTypeMap.put("121", "x25mlp");
        ifTypeMap.put("122", "x25huntGroup");
        ifTypeMap.put("123", "trasnpHdlc");
        ifTypeMap.put("124", "interleave");
        ifTypeMap.put("125", "fast");
        ifTypeMap.put("126", "ip");
        ifTypeMap.put("127", "docsCableMaclayer");
        ifTypeMap.put("128", "docsCableDownstream");
        ifTypeMap.put("129", "docsCableUpstream");
        ifTypeMap.put("130", "a12MppSwitch");
        ifTypeMap.put("131", "tunnel");
        ifTypeMap.put("132", "coffee");
        ifTypeMap.put("133", "ces");
        ifTypeMap.put("134", "atmSubInterface");
        ifTypeMap.put("135", "l2vlan");
        ifTypeMap.put("136", "l3ipvlan");
        ifTypeMap.put("137", "l3ipxvlan");
        ifTypeMap.put("138", "digitalPowerline");
        ifTypeMap.put("139", "mediaMailOverIp");
        ifTypeMap.put("140", "dtm");
        ifTypeMap.put("141", "dcn");
        ifTypeMap.put("142", "ipForward");
        ifTypeMap.put("143", "msdsl");
        ifTypeMap.put("144", "ieee1394");
        ifTypeMap.put("145", "if-gsn");
        ifTypeMap.put("146", "dvbRccMacLayer");
        ifTypeMap.put("147", "dvbRccDownstream");
        ifTypeMap.put("148", "dvbRccUpstream");
        ifTypeMap.put("149", "atmVirtual");
        ifTypeMap.put("150", "mplsTunnel");
        ifTypeMap.put("151", "srp");
        ifTypeMap.put("152", "voiceOverAtm");
        ifTypeMap.put("153", "voiceOverFrameRelay");
        ifTypeMap.put("154", "idsl");
        ifTypeMap.put("155", "compositeLink");
        ifTypeMap.put("156", "ss7SigLink");
        ifTypeMap.put("157", "propWirelessP2P");
        ifTypeMap.put("158", "frForward");
        ifTypeMap.put("159", "rfc1483");
        ifTypeMap.put("160", "usb");
        ifTypeMap.put("161", "ieee8023adLag");
        ifTypeMap.put("162", "bgppolicyaccounting");
        ifTypeMap.put("163", "frf16MfrBundle");
        ifTypeMap.put("164", "h323Gatekeeper");
        ifTypeMap.put("165", "h323Proxy");
        ifTypeMap.put("166", "mpls");
        ifTypeMap.put("167", "mfSigLink");
        ifTypeMap.put("168", "hdsl2");
        ifTypeMap.put("169", "shdsl");
        ifTypeMap.put("170", "ds1FDL");
        ifTypeMap.put("171", "pos");
        ifTypeMap.put("172", "dvbAsiIn");
        ifTypeMap.put("173", "dvbAsiOut");
        ifTypeMap.put("174", "plc");
        ifTypeMap.put("175", "nfas");
        ifTypeMap.put("176", "tr008");
        ifTypeMap.put("177", "gr303RDT");
        ifTypeMap.put("178", "gr303IDT");
        ifTypeMap.put("179", "isup");
        ifTypeMap.put("180", "propDocsWirelessMaclayer");
        ifTypeMap.put("181", "propDocsWirelessDownstream");
        ifTypeMap.put("182", "propDocsWirelessUpstream");
        ifTypeMap.put("183", "hiperlan2");
        ifTypeMap.put("184", "propBWAp2Mp");
        ifTypeMap.put("185", "sonetOverheadChannel");
        ifTypeMap.put("186", "digitalWrapperOverheadChannel");
        ifTypeMap.put("187", "aal2");
        ifTypeMap.put("188", "radioMAC");
        ifTypeMap.put("189", "atmRadio");
        ifTypeMap.put("190", "imt");
        ifTypeMap.put("191", "mvl");
        ifTypeMap.put("192", "reachDSL");
        ifTypeMap.put("193", "frDlciEndPt");
        ifTypeMap.put("194", "atmVciEndPt");
        ifTypeMap.put("195", "opticalChannel");
        ifTypeMap.put("196", "opticalTransport");
        ifTypeMap.put("197", "propAtm");
        ifTypeMap.put("198", "voiceOverCable");
        ifTypeMap.put("199", "infiniband");
        ifTypeMap.put("200", "teLink");
        ifTypeMap.put("201", "q2931");
        ifTypeMap.put("202", "virtualTg");
        ifTypeMap.put("203", "sipTg");
        ifTypeMap.put("204", "sipSig");
        ifTypeMap.put("205", "docsCableUpstreamChannel");
        ifTypeMap.put("206", "econet");
        ifTypeMap.put("207", "pon155");
        ifTypeMap.put("208", "pon622");
        ifTypeMap.put("209", "bridge");
        ifTypeMap.put("210", "linegroup");
        ifTypeMap.put("211", "voiceEMFGD");
        ifTypeMap.put("212", "voiceFGDEANA");
        ifTypeMap.put("213", "voiceDID");
        ifTypeMap.put("214", "mpegTransport");
        ifTypeMap.put("215", "sixToFour");
        ifTypeMap.put("216", "gtp");
        ifTypeMap.put("217", "pdnEtherLoop1");
        ifTypeMap.put("218", "pdnEtherLoop2");
        ifTypeMap.put("219", "opticalChannelGroup");
        ifTypeMap.put("220", "homepna");
        ifTypeMap.put("221", "gfp");
        ifTypeMap.put("222", "ciscoISLvlan");
        ifTypeMap.put("223", "actelisMetaLOOP");
        ifTypeMap.put("224", "fcipLink");
        ifTypeMap.put("225", "rpr");
        ifTypeMap.put("226", "qam");
        ifTypeMap.put("227", "lmp");
        ifTypeMap.put("228", "cblVectaStar");
        ifTypeMap.put("229", "docsCableMCmtsDownstream");
        ifTypeMap.put("230", "adsl2");
        ifTypeMap.put("231", "macSecControlledIF");
        ifTypeMap.put("232", "macSecUncontrolledIF");
        ifTypeMap.put("233", "aviciOpticalEther");
        ifTypeMap.put("234", "atmbond");
        ifTypeMap.put("235", "voiceFGDOS");
        ifTypeMap.put("236", "mocaVersion1");
        ifTypeMap.put("237", "ieee80216WMAN");
        ifTypeMap.put("238", "adsl2plus");
        ifTypeMap.put("239", "dvbRcsMacLayer");
        ifTypeMap.put("240", "dvbTdm");
        ifTypeMap.put("241", "dvbRcsTdma");
    }

    public static String getIfType(String typeIndex)  {
        if(ifTypeMap.containsKey(typeIndex)){
            return ifTypeMap.get(typeIndex);
        }else{
            return "UnknownifType";
        }

    }
}
